.dataVisualize-box {
  .box {
    box-sizing: border-box;
    padding: 25px 40px 0;
    margin-bottom: 10px;
    .action-btn {
      position: absolute;
      top: 10px;
      left: 10px;
      z-index: 3;
      padding: 0 4px;
      .action-item {
        display: flex;
        align-items: center;
        padding-bottom: 6px;
        margin-top: 6px;
        cursor: pointer;
        img {
          height: 40px;
        }
      }
      &.map-set {
        inset: 180px 20px auto auto;
      }
    }
    .content-wrapper {
      position: relative; // 为图例提供定位上下文
      width: 100%;
      height: 100%;
      .content {
        width: 100%;
        height: 100%;
        .canvas-box {
          width: 100%;
          height: auto;
          margin-bottom: 40px;
          box-shadow: 0 10px 20px rgb(0 0 0 / 14%);
        }
        .img-box {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          height: 100%;
          margin: 40px 0 20px;
          image-rendering: -webkit-optimize-contrast; /* For WebKit browsers */
          image-rendering: crisp-edges; /* For other browsers */
          image-rendering: pixelated; /* For browsers that support it */
          background-color: #ffffff;
          box-shadow: 0 10px 20px rgb(0 0 0 / 14%);
          transition: transform 0.3s ease;
        }
        img {
          width: 100%;
          height: 100%;
        }
        .placeholder {
          position: absolute;
          top: 50%;
          left: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 100%;
          height: 100%;
          font-size: 1.5rem;
          color: #999999;
          background-color: #f0f0f0;
          transform: translate(-50%, -50%);
        }
        .error-message {
          margin-top: 20px;
          color: red;
          text-align: center;
        }
      }
      .legend-container {
        position: absolute;
        top: 10px;
        left: 15px;
        padding: 10px;
        background: rgb(255 255 255 / 90%);
        border-radius: 4px;
        box-shadow: 0 2px 12px 0 rgb(0 0 0 / 10%);
        .legend-item {
          display: flex;
          align-items: center;
          margin: 5px 0;
          .color-block {
            width: 20px;
            height: 20px;
            margin-right: 8px;
            border-radius: 2px;
            &.red {
              background-color: rgb(243 9 13 / 98%);
            }
            &.orange {
              background-color: rgb(240 119 13 / 98%);
            }
            &.yellow {
              background-color: rgb(242 242 12 / 98.6%);
            }
            &.green {
              background-color: rgb(89 247 9 / 98%);
            }
            &.blue {
              background-color: rgb(7 129 243 / 98%);
            }
          }
          .legend-text {
            font-size: 12px;
            color: #333333;
          }
        }
      }
    }
  }
}
